using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmPurchaseMappingBudget")]
    public class PurchaseMappingBudget
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PcMapBgmId", ResourceType = typeof(Resources.PurchaseMappingBudgetResource))]
        public int PcMapBgmId { get; set; }

        //[ForeignKey("ReceiveExpense")]
        //[DataMember, Display(Name = "BgmRecExpId", ResourceType = typeof(Resources.PurchaseMappingBudgetResource))]
        //public int BgmRecExpId { get; set; }

        [ForeignKey("MasPurchaseType")]
		[DataMember, Display(Name = "PcTypeId", ResourceType = typeof(Resources.PurchaseMappingBudgetResource))]
        public Nullable<int> PcTypeId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PurchaseMappingBudgetResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PurchaseMappingBudgetResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PurchaseMappingBudgetResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PurchaseMappingBudgetResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PurchaseMappingBudgetResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember]
        public virtual MasPurchaseType MasPurchaseType { get; set; }

        //[DataMember]
        //public virtual BGM.ReceiveExpense ReceiveExpense { get; set; }

    }
}